/* jshint indent: 1 */

module.exports = function (sequelize, DataTypes) {
	return sequelize.define('basic_catalog_video', {
		device_id: {
			type: DataTypes.STRING(50),
			allowNull: false,
			primaryKey: true
		},
		name: {
			type: DataTypes.STRING(100),
			allowNull: true
		},
		parent_id: {
			type: DataTypes.STRING(50),
			allowNull: true
		},
		type: {
			type: DataTypes.INTEGER(4),
			allowNull: true
		},
		status: {
			type: DataTypes.INTEGER(4),
			allowNull: true
		},
		Lng: {
			type: "DOUBLE",
			allowNull: true
		},
		Lat: {
			type: "DOUBLE",
			allowNull: true
		},
		Url: {
			type: DataTypes.STRING(255),
			allowNull: true
		},
		SubUrl: {
			type: DataTypes.STRING(255),
			allowNull: true
		},
		Hurl: {
			type: DataTypes.STRING(255),
			allowNull: true
		}
	}, {
		tableName: 'basic_catalog_video',
		timestamps: false,
		freezeTableName: true
	});
};